-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move chart to subdirectory #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we may change the name in the templates a bit.
By default the only place where {{ include "helm_foobar.name" . }}
is used is helpers, in
{{/*
Selector labels
*/}}
{{- define "helm_foobar.selectorLabels" -}}
app.kubernetes.io/name: {{ include "helm_foobar.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
And everywhere else {{ include "helm_foobar.fullname" . }}
is used.
And we may want to add to the helpers and use {{ include "netobserve.serviceAccountName" . }}
(from standard)
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "netobserve.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
@@ -7,4 +7,4 @@ | |||
|
|||
# Misc | |||
tmp.* | |||
charts/** | |||
charts/netobserv/charts/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
charts/netobserv/charts/** | |
charts/netobserv/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would ignore all of the templates 😱
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But charts/netobserv/charts/**
does not seem to exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is where the helm dep update
and helm dep build
write to
Co-authored-by: Mack (Maksym Iv) <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
To follow a similar format to helm's create option, this moves the chart into a subdirectory. It also simplifies the image config.